package com.citywy.client;

import com.citywy.bean.BeanFactory;
import com.citywy.service.AccountService;
import com.citywy.service.impl.AccountServiceImpl;

/**
 * 模拟表现出，调用业务层
 */
public class Client {
    public static void main(String[] args) {
//        AccountService as = new AccountServiceImpl();
//        as.saveAccount();
        for(int i=0;i<5;i++){
            AccountService as = (AccountService) BeanFactory.getBean("accountService");
            System.out.println(as);
            as.saveAccount();
        }
    }
}
